window.onload = function () {
    var xhr = new XMLHttpRequest()
    xhr.open(`get`,`/studio/album/bind.json`+location.search)
    xhr.onload = function () {
        var data = JSON.parse(xhr.responseText)

        document.querySelector(".add").href += location.search
        document.querySelector(".title").textContent = data.title

        var oContainer = document.querySelector("tbody")
        var list = data.trackList
        for (var i in list) {
            var a = list[i]
            var html = `<tr><td>${a.tid}</td><td>${a.title}</td></tr>`

            oContainer.innerHTML += html
        }
    }
    xhr.send()
}